<!--
 * Copyright ©
 * #  
 * @author: zw
 * @date: 2021-11-26 
 -->


<template>
  	<el-header>
		<el-breadcrumb separator="/">
		  <el-breadcrumb-item v-for="(item,index) in data" :key="index">
			  <template #default>
				  <span v-if=" item instanceof Array"><router-link :to="'/'+item[1]">{{item[0]}}</router-link> </span>
				  <span v-else-if="true"> {{item}}</span>
			  </template>
		  </el-breadcrumb-item>
		</el-breadcrumb>
	</el-header>
</template>

<script lang='js'>
  import { defineComponent } from 'vue'
  export default defineComponent({
    name: 'basicHeader',
    props:{
			data:{ type:Array, required:true }
		},
    setup(props, {emit, slots}) {

     return {

      }
     }
  })

</script>

<style lang='css' scoped>
.el-header{
		height: 35px!important
	}
</style>
